package com.meida.boot.handler.company;

import com.meida.common.mybatis.entity.EntityMap;
import com.meida.common.mybatis.interceptor.GetInterceptor;
import com.meida.common.mybatis.query.CriteriaQuery;
import com.meida.common.security.OpenHelper;
import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Component;

/**
 * 商家店铺信息处理器
 * @author zyf
 */
@Component("mineShopGetHandler")
@Log4j2
public class MineShopGetHandler implements GetInterceptor {


    /**
     * 查询条件扩展
     *
     * @param cq
     * @return
     */
    @Override
    public void prepare(CriteriaQuery cq, EntityMap params) {
        Long companyId = OpenHelper.getCompanyId();
        cq.eq(true, "companyId", companyId);


    }

    /**
     * 返回结果集扩展
     *
     * @param cq
     * @return
     */
    @Override
    public void complete(CriteriaQuery cq, EntityMap map) {


    }
}
